package com.blockmeta.bbs.immodule.greendao.repository;

import com.blockmeta.bbs.immodule.dao.Todo;

import java.util.List;

public interface ITodoRepo {
    void addTodo(Todo todo, long whoId);

    int getMaxTodoIdByUserId(long whoId);

    List<Todo> getTodoList(long currentUserId);

    List<Todo> getGroupTodoList(long whoId, long circleId);

    Todo getTodoByTodoId(long todoId, long whoId);

    void updateTodo(long todoId, boolean complete, boolean agree,
                    String handleMsg, long whoId);

    long getAddFriendUnDoTodoCount(long uid);

    long countCircleUnCompleteTodo(long circleId, long uid);

    Todo getAddFriendLasteatUnCompleteTodo(long uid);

    Todo getCircleLasteatUnCompleteTodo(long circleId, long uid);

    void deleteTodo(long todoId, long whoId);

    List<Todo> getAllTodoList(long uidInt);

    int countUnCompleteTodo(int uidInt);
}
